<template>
  <div id="app">
    <h1>版本号:{{ visibal }}</h1>
    <!-- <router-link to="/login">列表</router-link> -->
    <!-- <router-view></router-view> -->
    <div class="carts" v-if="env === 'development'">
      <Product />
      <hr />
      <Cart />
    </div>
    <components v-else></components>
  </div>
</template>
<script>
import Cart from "./components/Cart";
import Product from "./components/Product";
import "assets/test.css";
import components from "./components/index.vue";
export default {
  data() {
    return {
      visibal: "",
      env: "development",
    };
  },
  components: {
    Cart,
    Product,
    components,
  },
  created() {
    console.log(process.env);
    this.visibal = process.env.VUE_APP_VERSION;
    this.env = process.env.NODE_ENV;
  },
};
</script>
